#! /bin/bash -ex
cd $(dirname $0)
now_path=$(pwd)

data_path=$1
circle_number=${2:-1}
output_path=${data_path}".model_output"
merged_model_path=$output_path/merged_llm_model

# 删除旧的数据
rm -rf $output_path

# 生成训练后的模型
bash -ex ./one_circle.sh $data_path $circle_number

# 启动http
python httpapi.py $merged_model_path
